from django.db import models
from python_residencia_rise.empresaApp.models import Empresa
from django.db.models.fields.related import OneToOneField, ForeignKey
from django.contrib.auth.models import User

# Create your models here.

class Residente(models.Model):
    nome = models.CharField(max_length=100)    
    empresa = ForeignKey(Empresa)
    usuario = OneToOneField(User)
    
    def __unicode__(self):
        return self.nome